//**********************************************************
//    File Name: User.cs
//    Author: Team Motif
//    Date Created : 04/13/2007
//    Current Owner: Team Motif 
//                                                                            
//    Purpose: 
//    This class provides the functions needed to create, update, access, and delete a 
//    user of the application.
//
//	  Copyright 2007
//**********************************************************

using System;
using System.Collections.Generic;
using System.Text;

namespace Library
{
    public class User
    {
        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Constructor for User class
        /// -------------------------------------------------------------------------------
        /// </summary>
        public User()
        {
            mRole = new UserRole();
            mUserID = 0;
            
        }

        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Authenticates a user via name and password
        /// -------------------------------------------------------------------------------
        /// </summary>
        /// <param name="firstName"></param>
        /// <param name="lastName"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        virtual public UserRole Authenticate(String firstName, String lastName, String password)
        {
            return mRole;
        }

        /// <summary>
        /// -------------------------------------------------------------------------------
        /// Get's the user ID
        /// -------------------------------------------------------------------------------
        /// </summary>
        /// <returns></returns>
        virtual public long GetUserID()
        {
            return mUserID;
        }

        // -------------------------------------------------------------------------------
        // Private data region.
        // -------------------------------------------------------------------------------
        UserRole mRole;
        long     mUserID;
    }
}
